#ifndef LIGHTMAPS_H
#define LIGHTMAPS_H
#include <SlippyMap.h>

class LightMaps: public QWidget
{
    Q_OBJECT

private:
    bool pressed;
    bool snapped;
    QPoint pressPos;
    QPoint dragPos;
    bool zoomed;
    QPixmap zoomPixmap;
    QPixmap maskPixmap;
    bool invert;

public:
    LightMaps(QWidget *parent = 0);
    void setCenter(qreal lat, qreal lng);
    SlippyMap *m_normalMap;

public slots:
    void toggleNightMode();

private slots:
    void updateMap(const QRect &r);

protected:
    void resizeEvent(QResizeEvent *);
    void paintEvent(QPaintEvent *event);
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *);
    void wheelEvent(QWheelEvent *event);

};


#endif // LIGHTMAPS_H
